<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'job-jobPost-form',
	'enableAjaxValidation'=>false,
)); ?>

    <h2>Posting Pekerjaan Baru</h2>

	<?php echo $form->errorSummary($model); ?>

	

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reward'); ?>
		Rp.<?php echo $form->textField($model,'reward'); ?>
		<?php echo $form->error($model,'reward'); ?>
	</div>

	

	<div class="row_startDate">
		<?php echo $form->labelEx($model,'start_date'); ?>

                <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'name'=>'Job[start_date]', // Name of the datepicker form field.
                        //'id ' => 'Job_start_date',
                        // additional javascript options for the date picker plugin
                        'options'=>array(
                            'showAnim'=>'fold',
                            'type' => 'timestamp',
                            'altField'=>'#start_date_picker', // The jQuery selector of the "target" field
                            'altFormat'=>'yy-mm-dd hh:ii:ss', // If you want the target field to have a different format
                            'dateFormat' => 'yy-mm-dd hh:ii:ss'
                        ),
                        'htmlOptions'=>array(
                            'style'=>'height:20px;',
                        ),
                    ));
                ?>
                <?php //echo $form->textField($model,'start_date', array('id'=>'#start_date_picker', 'value'=>'')); ?>
		<?php echo $form->error($model,'start_date'); ?>
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'end_date'); ?>
                 <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'name'=>'Job[end_date]', // Name of the datepicker form field.
                        //'id ' => 'Job_start_date',
                        // additional javascript options for the date picker plugin
                        'options'=>array(
                            'showAnim'=>'fold',
                            'type' => 'timestamp',
                            'altField'=>'#end_date_picker', // The jQuery selector of the "target" field
                            'altFormat'=>'yy-mm-dd hh:ii:ss', // If you want the target field to have a different format
                            'dateFormat' => 'yy-mm-dd hh:ii:ss'
                        ),
                        'htmlOptions'=>array(
                            'style'=>'height:20px;',
                        ),
                    ));
                ?>
		<?php //echo $form->textField($model,'end_date'); ?>
		<?php echo $form->error($model,'end_date'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>
    <?php
        if ($success){
            ?>
            <p><font color="#008000">Pekerjaan berhasil disimpan.</font></p>
            <?php
        }
    ?>

</div><!-- form -->